//
//  ThreePicCell.m
//  NeteaseNewsLY
//
//  Created by dllo on 16/1/20.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ThreePicCell.h"

@implementation ThreePicCell
- (void)dealloc
{
    [_title release];
    [_oneImg release];
    [_twoImg release];
    [_threeImg release];
    [_updateTime release];
    [_commentsall release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview: _title];
        [_title release];
        
        self.oneImg = [[UIImageView alloc] init];
        [self.contentView addSubview: _oneImg];
        [_oneImg release];
        
        self.twoImg = [[UIImageView alloc] init];
        [self.contentView addSubview: _twoImg];
        [_twoImg release];
        
        
        self.threeImg = [[UIImageView alloc] init];
        [self.contentView addSubview: _threeImg];
        [_threeImg release];
        
        self.updateTime = [[UILabel alloc] init];
        [self.contentView addSubview:_updateTime];
        [_updateTime release];
        
        self.commentsall = [[UILabel alloc] init];
        [self.contentView addSubview:_commentsall];
        [_commentsall release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _title.frame = CGRectMake(WIDTH * 10, HEIGHT * 15, WIDTH * 300, HEIGHT * 25);
    _title.font = [UIFont systemFontOfSize:15];
    
    _oneImg.frame = CGRectMake(WIDTH * 10, HEIGHT * 45, WIDTH * 110, HEIGHT * 75);
    
    _twoImg.frame = CGRectMake(WIDTH * 130, HEIGHT * 45, WIDTH * 110, HEIGHT * 75);
    
    _threeImg.frame = CGRectMake(WIDTH * 250, HEIGHT * 45, WIDTH * 110, HEIGHT * 75);
    
    _updateTime.frame = CGRectMake(WIDTH * 15, HEIGHT * 125, WIDTH * 50, HEIGHT * 25);
    _updateTime.font = [UIFont systemFontOfSize:12];
    _updateTime.textColor =[UIColor grayColor];
    
    _commentsall.frame = CGRectMake(WIDTH * 300, HEIGHT * 125, WIDTH * 75, HEIGHT * 25);
    _commentsall.font = [UIFont systemFontOfSize:12];

    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
